package com.blog.backend.service;

import com.blog.backend.domain.BlogAccess;
import com.blog.backend.domain.BlogSummary;
import com.blog.backend.req.SettingReq;
import com.blog.backend.resp.*;
import com.blog.backend.vo.PageRequest;
import com.blog.backend.vo.PageResult;

import java.util.List;

public interface BlogIndexManagerService {
    StatisticsNumResp statisticsTotal();

    PageResult<SysSettingResp> getSettingList(PageRequest request);

    List<BlogAccess> selectTenAccess();

    List<IndexArticleResp> selectHotArticle(Integer num);

    DraftResp selectDraftNums();

    TitleDataResp selectTitleData();

    SysSettingResp getSettingDetail(String settingId);

    Boolean updateSettingDetail(SettingReq req);

    PageResult<SummaryResp> getSummaryList(PageRequest request);

    Boolean addSummary(BlogSummary req);

    SummaryResp getSummaryDetail(String summaryId);

    Boolean updateSummaryDetail(BlogSummary req);

    Boolean deleteSummary(String summaryId);

    List<BlogAlbumResp> getIndexAlbums();

    BlogSummary getIndexSummary();

    List<BlogAssessResp> getNewAssessList();

    List<IndexArticleResp> getNewArticleList(int num);

    BlogAlbumResp getPhotosByType(String type);

    IndexArticleResp getNewTechnology();
}
